package cn.icyzx.models;

import org.hibernate.validator.constraints.Email;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * Created by 郑凯 on 2016/7/18.
 */
public class User {

    private String uid;

    @NotNull(message = "用户名不能为空")
    @Size(min = 1, max = 10, message = "用户名必须在1~10个字符")
    private String username;

    @NotNull(message = "密码不能为空")
    @Size(min = 1, max = 10, message = "密码必须在1~10个字符")
    private String password;

    @Email(message = "填写正确的Email格式")
    @NotNull(message = "Email不能为空")
    private String email;

    private String college;
    private String major;
    private String classes;
    private String active;
    private String sex;
    private String img;
    private String findPsw;
    private String sign;
    private String favorite;

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getFindPsw() {
        return findPsw;
    }

    public void setFindPsw(String findPsw) {
        this.findPsw = findPsw;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getClasses() {
        return classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getFavorite() {
        return favorite;
    }

    public void setFavorite(String favorite) {
        this.favorite = favorite;
    }
}
